<!DOCTYPE html>
<html lang='zh-CN'>

<head>
  <meta charset='utf-8'>
  <meta http-equiv='X-UA-Compatible' content='IE=edge, chrome=1'>
  <meta name='viewport' content='with=device-width, user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1'>
  <title>小程序跳转</title>
  <style>
    html, body {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    }
  </style>
  <script>
    function getUrlKey(name) {
      return (
        decodeURIComponent(
          (new RegExp("[?|&]" + name + "=" + "([^&;]+?)(&|#|;|$)").exec(location.href) || [undefined, ""])[1].replace(/\+/g, "%20")
        ) || null
      );
    }
    function init() {
      const schema = getUrlKey('t')
      const url = 'weixin://dl/business/?t=' + schema
      const jumpBtn = document.getElementById('jump')
      jumpBtn.addEventListener('click', function () {
        location.href = url
      })
      location.href = url
    }
  </script>
</head>

<body onload="init()">
  <div style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;">
    <div id="jump" style="background: #6A66F6; width: 160px; height: 48px; line-height: 48px; text-align: center; color: #fff; border-radius: 4px;">
      跳转到小程序
    </div>
  </div>
</body>
</html>